package com.hckjsec.website.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.hckjsec.website.mapper.WebSiteMechanismMapper;
import com.hckjsec.website.domain.WebSiteMechanism;
import com.hckjsec.website.service.IWebSiteMechanismService;

/**
 * 机构简介Service业务层处理
 * 
 * @author cyt
 * @date 2021-10-18
 */
@Service
public class WebSiteMechanismServiceImpl implements IWebSiteMechanismService 
{
    @Autowired
    private WebSiteMechanismMapper webSiteMechanismMapper;

    /**
     * 查询机构简介
     * 
     * @param id 机构简介ID
     * @return 机构简介
     */
    @Override
    public WebSiteMechanism selectWebSiteMechanismById(Long id)
    {
        return webSiteMechanismMapper.selectWebSiteMechanismById(id);
    }

    /**
     * 查询机构简介列表
     * 
     * @param webSiteMechanism 机构简介
     * @return 机构简介
     */
    @Override
    public List<WebSiteMechanism> selectWebSiteMechanismList(WebSiteMechanism webSiteMechanism)
    {
        return webSiteMechanismMapper.selectWebSiteMechanismList(webSiteMechanism);
    }

    /**
     * 新增机构简介
     * 
     * @param webSiteMechanism 机构简介
     * @return 结果
     */
    @Override
    public int insertWebSiteMechanism(WebSiteMechanism webSiteMechanism)
    {
        return webSiteMechanismMapper.insertWebSiteMechanism(webSiteMechanism);
    }

    /**
     * 修改机构简介
     * 
     * @param webSiteMechanism 机构简介
     * @return 结果
     */
    @Override
    public int updateWebSiteMechanism(WebSiteMechanism webSiteMechanism)
    {
        return webSiteMechanismMapper.updateWebSiteMechanism(webSiteMechanism);
    }

    /**
     * 批量删除机构简介
     * 
     * @param ids 需要删除的机构简介ID
     * @return 结果
     */
    @Override
    public int deleteWebSiteMechanismByIds(Long[] ids)
    {
        return webSiteMechanismMapper.deleteWebSiteMechanismByIds(ids);
    }

    /**
     * 删除机构简介信息
     * 
     * @param id 机构简介ID
     * @return 结果
     */
    @Override
    public int deleteWebSiteMechanismById(Long id)
    {
        return webSiteMechanismMapper.deleteWebSiteMechanismById(id);
    }
}
